package com.example.mapper;

import com.example.entity.Order;
import com.example.entity.Order_Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {


    void addOrder(Order order);

    List<Order_Product> selectPageByUser(Integer id);

    void updateOrder(Order order);

    Order selectByNo(String orderNo);

    List<Order_Product> selectPageByBusiness(Integer id);

    List<Order_Product> selectPageByBusiness_status(Integer id, Integer status);

    List<Order_Product> selectPageByUser_status(Integer id, Integer status);
}
